import { request } from '@/api/service'
import {urlProPrefix} from "@/views/project/myProject/api";

export const urlServicePrefix = '/ai/services/'

export function GetServiceList (query) {
  return request({
    url: urlServicePrefix,
    method: 'get',
    params: { ...query }
  })
}

export function DelServiceObj (id) {
  return request({
    url: urlServicePrefix + id + '/',
    method: 'delete',
    data: { soft_delete: true }
  })
}

export function UpdateServiceObj (obj) {
  return request({
    url: urlServicePrefix + obj.id + '/',
    method: 'put',
    data: obj
  })
}
